﻿using System;

namespace Hx.ADSyncPlatform.Entity.Models
{
    public class Plat_SysRoleViewModel
    {

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        public Guid RoleID { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string RoleName { get; set; }

        /// <summary>
        /// Desc:管理员级别：0:超级管理员 1:高级管理员 2:普通管理员
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? RoleLevel { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }


        public string Remark { get; set; }

        public bool IsSuperAdmin => this.RoleLevel == 0 && this.RoleName == "超级管理员";
    }
}
